#!/bin/sh
# Usage:
# bash scp.sh [FILENAME]

scpfile=$1
shift
ipfile="ip.txt"
# edit user
user=root
aimdir=alias_bls/

cat $ipfile | while read ip; do
    scp $scpfile $user@$ip:/root/$aimdir
done
